/**
 * $Id: GdEdge.java,v 1.1 2010-08-25 08:36:59 gaudenz Exp $
 * Copyright (c) 2010, Gaudenz Alder, David Benson
 */
package com.kg.rails.component.editor.io.gd;

/**
 * Represents an Edge entry in the file.
 */
public class GdEdge {
    /**
     * Name of the source node.
     */
    private String sourceName;

    /**
     * Name of the target node.
     */
    private String targetName;

    public GdEdge(String sourceName, String targetName) {
        this.sourceName = sourceName;
        this.targetName = targetName;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public String getTargetName() {
        return targetName;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    public String getEdgeString() {
        return sourceName + "," + targetName;
    }
}
